package com.action.gulimall.order.service.feign;

import com.action.common.utils.R;
import com.action.gulimall.order.service.feign.FallBack.MemberFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author sl shilun217@qq.com
 * @Deacription 远程调用会员服务
 * @date 2021/07/03/15:28
 **/
@FeignClient(value="gulimall-member",fallback = MemberFeignServiceFallBack.class)
public interface MemberFeignService {

    @GetMapping(value="/member/memberreceiveaddress/{memberId}/address")
    R getMemberAddress(@PathVariable(value="memberId") String memberId);

    @GetMapping(value="/member/member/info/{memberId}")
    R getMember(@PathVariable(value="memberId") Long memberId);
}

